<?php

/**
 * SearchForm class.
 * SearchForm is the data structure for keeping
 * user search form data. It is used by the 'search' action of 'ReportController'.
 */
class UserSearchForm extends CFormModel
{
	public $eparchy_code;
	public $depart_code;
	public $user_name;
	public $phone;


	/**
	 * Declares the validation rules.
	 * The rules state that username and password are required,
	 * and password needs to be authenticated.
	 */
	public function rules()
	{
		return array(
			//array('start_date, end_date', 'required'),
			array('eparchy_code, depart_code, user_name, phone', 'safe'),
		);
	}

	/**
	 * Declares attribute labels.
	 */
	public function attributeLabels()
	{
		return array(
			'eparchy_code'=>'归属地市',
			'depart_code'=>'营业厅',
			'user_name'=>'姓名',
			'phone'=>'电话',
		);
	}
}
